package lottery;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table
public class Lottery
{
    private int id;
    private String name;
    private int status; //状态 1:正常开启 0：关闭停止
    private String area; //产地,比如江西、重庆
    
    /**返回实例
     * @param id
     * @param lotteryName
     * @return
     */
    public Lottery instance(int id, String lotteryName){
    	this.setId(id);
    	this.setName(lotteryName);
    	return this;
    }
    
    public String getArea()
    {
        return area;
    }
    public void setArea(String area)
    {
        this.area = area;
    }
   
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public int getStatus()
    {
        return status;
    }
    public void setStatus(int status)
    {
        this.status = status;
    }
    
}
